import { Menu } from './../models';
import { paraMap } from './../utils';

export default {
    addMenu(param: object|any): Promise<any> {
        const menu: any = new Menu();
        paraMap(param, menu);
        return menu.save();
    }
};